package cn.itcast.order.listen;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @author danDong
 * @date 2025-04-14 16:10:29
 */
@Component
public class MyEventListener {

    @EventListener
    public void handleMyCustomEvent(MyCustomEvent event) {
        System.out.println("Received custom event - " + event.getMessage());
    }
}
